/*
 * Copyright (c) 2010-present www.walkerljl.org All Rights Reserved.
 * The software source code all copyright belongs to the author, 
 * without permission shall not be any reproduction and transmission.
 */
package org.walkerljl.practice.sort;

import java.util.Comparator;

/**
 * FastSort
 *
 * @author lijunlin<walkerljl@qq.com>
 */
public class FastSort {

    /**
     * Sorts an array using given comparator.
     */
    public static <T> void sort(T array[], Comparator<T> comparator) {
        TimSort.sort(array, comparator);
    }

    /**
     * Sorts an array of comparables.
     */
    public static void sort(Comparable array[]) {
        ComparableTimSort.sort(array);
    }

}